# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ftester
pkgver=1.0
pkgrel=9
groups=('blackarch' 'blackarch-fuzzer')
pkgdesc='A tool designed for testing firewall filtering policies and Intrusion Detection System (IDS) capabilities.'
url='http://www.inversepath.com/ftester.html'
arch=('any')
license=('GPL3')
depends=('perl' 'perl-netpacket' 'perl-net-rawip' 'perl-net-pcaputils')
source=("http://dev.inversepath.com/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('413929178489c755fb5c876a88510bea28c59f1942a279c332fcd008ecbf4b0fd47e6b15abe1068c134d14c9ab2bdb841ffa280f95f77a819779e7e9626e9cfb')

package() {
  cd "$pkgname-$pkgver"

  install -Dm -t 755 "$pkgdir/usr/bin/" freport ftest ftestd

  install -Dm 644 $pkgname.8 "$pkgdir/usr/share/man/man8/$pkgname.8"
  install -Dm 644 ftest.conf "$pkgdir/etc/$pkgname"

  for i in COPYING CREDITS Changelog LICENSE README README.redhat ; do
    install -Dm 644 -t "$pkgdir/usr/share/$pkgname" $i
  done
}

